import Cookies from 'js-cookie'

const idKey = 'Mango-AccountId'
const nameKey = 'Mango-AccountName'

export function getAccountId() {
    return Cookies.get(idKey)
}

export function getAccountName() {
    return Cookies.get(nameKey)
}

export function setAccountId(id) {
    return Cookies.set(idKey, id,{ expires: 7 })
}

export function setAccountName(name) {
    return Cookies.set(nameKey, name,{ expires: 7 })
}